<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link rel="stylesheet" href="/css/plugins/datapicker/datepicker3.css">
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="col-sm-12">
			<div class="ibox">
				<div class="ibox-body">
					<div class="fixed-table-toolbar">
						<div class="columns pull-left">
							<button shiro:hasPermission="system:bizCustomer:add" type="button" class="btn  btn-primary" onclick="add()">
								<i class="fa fa-plus" aria-hidden="true"></i>添加
							</button>
							<button shiro:hasPermission="system:bizCustomer:batchRemove" type="button" class="btn  btn-danger"
								onclick="batchRemove()">
								<i class="fa fa-trash" aria-hidden="true"></i>删除
							</button>
						</div>
						<div shiro:hasPermission="system:bizCustomer:export" class="columns pull-right">
							<button class="btn btn-success" onclick="exportData()">导出</button>
						</div>
						<div class="columns pull-right">&nbsp;</div>
						<div class="columns pull-right">
							<button class="btn btn-success" onclick="reSet()">重置</button>
						</div>
						<div class="columns pull-right">&nbsp;</div>
						<div class="columns pull-right">
							<button class="btn btn-success" onclick="reLoad()">查询</button>
						</div>
						<div class="columns pull-right">&nbsp;</div>
						<div class="pull-right search col-md-2 nopadding">
							<select data-placeholder="--选择客户状态--" name="custStatus" id="custStatus"
                                        class="form-control chosen-select" tabindex="2" required>
	                                    <option value="">--选择类别--</option>
	                                    <option value="1">正常</option>
	                                    <option value="-1">逾期</option>
	                        </select>
						</div>
						<div class="pull-right search col-md-2 nopadding">
							<select data-placeholder="--选择服务类型--" name="servType" id="servType"
                                        class="form-control chosen-select" tabindex="2" required>
	                                    <option value="">--选择类别--</option>
	                                    <option value="bgztwh">办公整机维护</option>
	                                    <option value="rkqjbs">税控器具报税</option>
	                                    <option value="dzsb">电子申报</option>
	                                    <option value="zzsb">纸质申报</option>
	                                    <option value="dlfp">代领发票</option>
	                                    <option value="ddyfp">代打印发票</option>
	                                    <option value="dljz">代理记账、理账</option>
	                                    <option value="other">其它</option>
	                        </select>
						</div>
						<div class="pull-right search col-md-2 nopadding">
							<input id="endDate" type="text" class="form-control"
								placeholder="结束日期">
						</div>
						<div class="pull-right search col-md-2 nopadding">
							<input id="beginDate" type="text" class="form-control"
								placeholder="起始日期">
						</div>
						
						<div class="pull-right search col-md-2 nopadding">
							<input id="contract" type="text" class="form-control"
								placeholder="联系人姓名">
						</div>
						<div class="pull-right search col-md-2 nopadding">
							<input id="custName" type="text" class="form-control"
								placeholder="客户名称">
						</div>
						

					</div>
					<table id="exampleTable" data-mobile-responsive="true">
					</table>
				</div>
			</div>
		</div>
	</div>
	<!--shiro控制bootstraptable行内按钮看见性 来自bootdo的创新方案 -->
		<div>
			<script type="text/javascript">
				var s_edit_h = 'hidden';
				var s_remove_h = 'hidden';
				var s_xufei = 'hidden';
				var s_view = 'hidden';
			</script>
		</div>
		<div shiro:hasPermission="system:bizCustomer:edit">
			<script type="text/javascript">
				s_edit_h = '';
			</script>
		</div>
		<div shiro:hasPermission="system:bizCustomer:remove">
			<script type="text/javascript">
				var s_remove_h = '';
			</script>
		</div>
		<div shiro:hasPermission="system:bizCustomer:xufei">
			<script type="text/javascript">
				var s_xufei = '';
			</script>
		</div>
		<div shiro:hasPermission="system:bizCustomer:view">
			<script type="text/javascript">
				var s_view = '';
			</script>
		</div>
	</div>
	<div th:include="include :: footer"></div>
	<script type="text/javascript" src="/js/appjs/system/bizCustomer/bizCustomer.js"></script>
	<script type="text/javascript" src="/js/plugins/datapicker/bootstrap-datepicker.js"></script>
</body>
</html>